rfft Function

public pure function rfft(x, n) result(rst)

Computes the Fourier transform of a real-valued data set. Only the positive half of the transform is returned.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:) :: x

The real-valued array to transform.

integer(kind=int32), intent(in), optional :: n

An optional input that can be used to specify the length of the transform. If less than the length of x, x is truncated; however, if greater than the length of x, x is padded with zeros.

Return Value complex(kind=real64), allocatable, dimension(:)

The complex-valued result of the transform.